/**
 * 此文件存储为config.js
 */
//document.domain = location.hostname.substr(location.hostname.indexOf('.') + 1); //这个一定要加，不然很多地方会有问题
define(function (require, exports, module) {
    var domain = window.location.origin;
    var resourceDomain = window.location.protocol + "//wui." + window.location.hostname.substr(window.location.hostname.indexOf('.') + 1) + (window.location.port ? ":" + window.location.port : '')
    window.resourceDomain = resourceDomain;
    module.exports = {
        debug: -1,
        autorun: function () {
            window.is_demo = false;
        },
        alias: { //模块别名设置
            init: resourceDomain + '/init',
            jquery: 'lib/jquery.min',
            jqCookie: 'lib/jquery.cookie',
            jqLocationHash: 'lib/jquery.locationHash',
            'jquery-ui': 'lib/jquery-ui/jquery-ui.min',
            highcharts: 'lib/highcharts/highcharts',
            flot: 'lib/jquery-flot/jquery.flot.min',
            bootstrap: 'lib/bootstrap/js/bootstrap.min',
            raphael: 'lib/raphael.min',
            easyPieChart: 'lib/easy-pie-chart-master/jquery.easypiechart.fill',
            plupload: 'lib/plupload/jquery.plupload.queue/jquery.plupload.queue',
            jvectorMap: 'lib/jvectormap/jquery-jvectormap-2.0.3.min',
            select2: 'lib/select2/dist/js/select2.full.min',
            pluploadBasic: 'lib/plupload/plupload.full.min',
            clipboard: 'lib/clipboard/clipboard.min',
            masonry: 'lib/masonry/masonry.pkgd.min',
            zclip: 'lib/jquery.zclip/jquery.zclip.min',
            multiSelect: 'lib/multiselect/bootstrap-multiselect'
        },
        paths: { // 目录路径
            core: resourceDomain + '/js/',
            self: domain + '/static/js/', //重点关注这部分，这个为项目私有js模块的目录
            lib: resourceDomain + '/lib',
            util: resourceDomain + '/js/util'
        },
        modules: { // 模块版本以及依赖关系
            'jquery': ['1.10.2'],
            'jqCookie': ['1.4.1', ['jquery']],
            'jqLocationHash': ['1.0.0', ['jquery']],
            'jquery-ui': ['1.11.4', ['jquery']],
            'highcharts': ['4.2.5', ['jquery']],
            'flot': ['3.0.10', ['jquery']],
            'select2': ['4.0.2', ['jquery']],
            'easyPieChart': ['2.1.7', ['jquery']],
            'jvectorMap': ['2.0.3', ['jquery']],
            'bootstrap': ['1.10.3', ['jquery']],
            'lib/daterangepicker/daterangepicker': ['1.0', ['jquery', 'lib/moment/moment.min']],
            'lib/jquery-lazyload/jquery.lazyload.min': ['1.9.7', ['jquery']],
            'masonry': ['4.2.0', ['jquery']],
            'plupload': ['1.5.7', ['jquery', 'pluploadBasic']],
            'zclip': ['1.1.1', ['jquery']],
            'clipboard': ['1.5.10', ['jquery']]
        }
    };
});